<template>
  <div>
    <van-datetime-picker
        v-model="currentDate"
        type="datehour"
        title="选择年月日小时"
        :min-date="minDate"
        :max-date="maxDate"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      minDate: new Date(2020, 0, 1),
      maxDate: new Date(2025, 10, 1),
      currentDate: new Date(),
    };
  },
};
</script>
<style scoped>

</style>
